package com.leagueautoattack.bean;

import java.awt.*;

public class Config {

    Rectangle rectangle = new Rectangle(387, 1009, 55, 30);
    float preAttack = 0.47f;
    float postAttack = 0.53f;
    char autoAttackKey = 'A';

    public Config() {}

    public Config(Rectangle rectangle, float preAttack, float postAttack, char autoAttackKey) {
        this.rectangle = rectangle;
        this.preAttack = preAttack;
        this.postAttack = postAttack;
        this.autoAttackKey = autoAttackKey;
    }

    public Rectangle rectangle() {
        return rectangle;
    }

    public void setRectangle(Rectangle rectangle) {
        this.rectangle = rectangle;
    }

    public float preAttack() {
        return preAttack;
    }

    public void setPreAttack(float preAttack) {
        this.preAttack = preAttack;
    }

    public float postAttack() {
        return postAttack;
    }

    public void setPostAttack(float postAttack) {
        this.postAttack = postAttack;
    }

    public char autoAttackKey() {
        return autoAttackKey;
    }

    public void setAutoAttackKey(char autoAttackKey) {
        this.autoAttackKey = autoAttackKey;
    }

    @Override
    public String toString() {
        return "Config{" +
                "rectangle=" + rectangle +
                ", preAttack=" + preAttack +
                ", postAttack=" + postAttack +
                ", autoAttackKey=" + autoAttackKey +
                '}';
    }
}
